package com.saint.news.Utils;


import java.util.Map;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.QueryMap;
import retrofit2.http.Streaming;
import retrofit2.http.Url;

/**
 * Created by Administrator on 2017/12/27.
 */

public interface HttpService {
    @GET("api/main")
    Call<String> requestMainBean();

    @GET("api/cats")
    Call<String> getCats();

    @GET("api/cats?")
    Call<String> getSubCats(@QueryMap Map<String, String> params);

    @GET("api/photos?")
    Call<String> getSubCatContent(@QueryMap Map<String, String> params);

    @Streaming
    @GET
    Call<ResponseBody> downloadFileWithUrlAsync(@Url String fileUrl);
}
